/*
 * semaphore.h
 *
 *  Created on: Mar 4, 2013
 *      Author: abrahamsantini
 */

#ifndef SEMAPHORE_H_
#define SEMAPHORE_H_

typedef struct {
	 int count;
	 int size;
}semaphore_t;

int semaphore_init(semaphore_t *sp, int count);
//pretty sure this isn't needed in this context
//int semaphore_destroy(semaphore_t *sp);
int semaphore_down(semaphore_t *sp);
int semaphore_up(semaphore_t *sp);
int semaphore_getCount(semaphore_t *sp);

#endif /* SEMAPHORE_H_ */
